<template>
  <div id="top">
    <div class="btn-left" @click="leftbtn()"></div>
    <van-nav-bar class="news" title="消息中心"  />
    <div class="btn-right"></div>
  </div>
</template>

<script>
export default {
    methods:{
        leftbtn(){
            this.$router.push("/myhome")
        }
    }
}
</script>

<style lang="scss" scoped>
  #top{
    height: 2.625rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
  }
  .btn-left{
    width: 1.5625rem;
    height: 1.5625rem;
    background: url() no-repeat;
    background-size: 1.5625rem;
  }
  .news{
    width: 9.375rem;
    font-size: 1.25rem;
    // --van-nav-bar-arrow-size: 20px;
  }

  .btn-right{
    width: 1.5625rem;
    height: 1.5625rem;
    background: url() no-repeat;
    background-size: 1.375rem;
  }
</style>